import { sendRequest } from '@/http';

// /admin/homecare/service/project/queryServiceProjectList
export const queryServiceProjectList = (params: {
  page: number;
  pageSize: number;
  name?: string;
}) => {
  return sendRequest({
    url: '/admin/homecare/service/project/queryServiceProjectList',
    method: 'get',
    params,
  });
};
export const queryServiceCateTreeList = (params: {
  page: number;
  pageSize: number;
  name?: string;
}) => {
  return sendRequest({
    url: '/admin/homecare/service/cate/queryServiceCateTree',
    method: 'get',
    params,
  });
};

// /admin/homecare/service/project/queryServiceProjectDetail
export const queryServiceProjectDetail = (params: { id: string }) => {
  return sendRequest({
    url: '/admin/homecare/service/project/queryServiceProjectDetail',
    method: 'get',
    params,
  });
};

// /admin/homecare/service/project/createServiceProject
export const createServiceProject = (params: any) => {
  return sendRequest({
    url: '/admin/homecare/service/project/createServiceProject',
    method: 'post',
    data: params,
  });
};

// /admin/homecare/service/project/updateServiceProject
export const updateServiceProject = (params: any) => {
  return sendRequest({
    url: '/admin/homecare/service/project/updateServiceProject',
    method: 'post',
    data: params,
  });
};

// /admin/homecare/service/project/deleteServiceProject
export const deleteServiceProject = (params: { id: string }) => {
  return sendRequest({
    url: '/admin/homecare/service/project/deleteServiceProject',
    method: 'post',
    data: params,
  });
};
